import org.testng.annotations.*;


public class testNG1 {
@BeforeTest
public void setUp(){
  System.out.println("Before main test");	
}

@Test (dataProvider= "dataReader1")
public void mainTest1(String vName, String vEmail, String vPswd){
	System.out.println("Login");
	System.out.println("Name: " + vName);
	System.out.println("Email: " + vEmail);
	System.out.println("Pswd: " + vPswd);
}

@Test 
public void mainTest2(){
	System.out.println("Account Update");
}

@Test (dataProvider = "dataReader2")
public void mainTest3(String vAmount, String vReceiver){
	System.out.println("Send Money");
	System.out.println("Amount: " + vAmount);
	System.out.println("To be sent to: " + vReceiver);
}

@DataProvider
public Object[][] dataReader1(){
	Object[][] myData = new Object[2][3];
	myData[0][0] = "Kamash";
	myData[0][1] = "kamash@leader.com";
	myData[0][2] = "pswd123";
	
	myData[1][0] = "Jaya";
	myData[1][1] = "jaya@leader.com";
	myData[1][2] = "pshjh3";
	
	return myData;
}

@DataProvider
public Object[][] dataReader2(){
	Object myData2[][] = new Object[2][2];
	myData2[0][0] = "300";
	myData2[0][1] = "Pranav";
	
	myData2[1][0] = "300";
	myData2[1][1] = "Prathinav";
	
	return myData2;
}

@AfterTest
public void atEnd(){
	System.out.println("After main test");
}



public void mainTest4(){
		System.out.println("During main test 4");
	}
}

